#version 330 core
layout (location = 0) in vec3 pos;          // 位置坐标
layout (location = 1) in vec3 norm_vec;     // 法向量
layout (location = 2) in vec2 tex_cord;     // 纹理坐标
layout (location = 3) in mat4 model_mat;

out vec3 vtx_cord;
out vec3 vtx_norm;
out vec2 vtx_tex_cord;

uniform mat4 view_mat;
uniform mat4 proj_mat;

void main() {
    gl_Position = proj_mat * view_mat * model_mat * vec4(pos.x, pos.y, pos.z, 1.0);   
    vtx_cord = pos;
    vtx_norm = norm_vec;
    vtx_tex_cord = tex_cord;

    //gl_Position = vec4(pos.x, pos.z, 0.0, 1.0); 
}
